package com.dingwen.treasure.mybatisplus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dingwen.treasure.base.enums.MsgState;
import com.dingwen.treasure.model.entity.mybatisplus.TreasureMessage;

/**
* @author dingwen
* @description 针对表【treasure_message(消息表)】的数据库操作Service
* @createDate 2022-08-09 13:18:00
*/
public interface TreasureMessageService extends IService<TreasureMessage> {
    /**
     * 消息投递
     */
    void deliverMessage();

    /**
     * 更新消息状态
     *
     * @param mgState   mg状态
     * @param messageId 消息id
     */
    void updateMessageState(MsgState mgState,Long messageId);
}
